# wget --post-data 'count=100&size=0&cleanup=false&sleep=0' http://localhost:18080/petclinic/session/fill

# wget --post-file=post.txt http://localhost:18080/petclinic/session/fill --save-cookies cookies.txt --load-cookies cookies.txt --keep-session-cookies


for i in `seq 1 100` ; 
do 
wget --post-file=post.txt http://localhost:18080/petclinic/session/fill --save-cookies cookies.txt --load-cookies cookies.txt --keep-session-cookies ; 
done


#  --save-cookies cookies.txt --load-cookies cookies.txt --keep-session-cookies


# ab -c 10 -n 1000 -T "application/x-www-form-urlencoded" -p post.txt http://localhost:18080/petclinic/session/fill

# man ab
# -k     Enable the HTTP KeepAlive feature, i.e., perform multiple requests within one HTTP session. Default is no KeepAlive.
#-C cookie-name=value
#              Add a Cookie: line to the request. The argument is typically in the form of a name=value pair. This field is repeatable.
# można sprawdzić value w pliku wgeta - identyfikator sesji, i wstawić do tego polecenia


# for i in `seq 1 20`; do curl http://url; done


